using System;
using System.Data;

namespace FreeFlow.Administration
{
	/// <summary>
	/// The details for a version of a procedure.
	/// </summary>
  public class ProcedureVersion : Version
  {
    internal ProcedureVersion(Server server, IDataReader reader) : base(server, reader)
    {
    }

    private LibraryVersionCollection libraryVersions;
    /// <summary>
    /// Gets the library versions used for this version of the procedure.
    /// </summary>
    public LibraryVersionCollection LibraryVersions
    {
      get
      {
        if (libraryVersions == null)
          libraryVersions = new LibraryVersionCollection(Server, Name, VersionNumber);
        return libraryVersions;
      }
    }
  }
}
